//
//  ShopListController.h
//  L7_test
//
//  Created by Mac on 11-12-30.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseViewController.h"
#import "SupplierManager.h"
#import "RefreshView.h"
#import <MessageUI/MessageUI.h>
#import <QuartzCore/QuartzCore.h>
#import "AppDelegate.h"
#import "FMDBSupplierManager.h"

@interface ShopListController : BaseViewController <UIPickerViewDelegate,UIPickerViewDataSource,RefreshViewDelegate,UITableViewDelegate,UITableViewDataSource>{
    SupplierManager *manager;
    NSArray *suppliers;
    int supCateId;
    int currentPage;
    RefreshView *refreshView;
    BOOL isEnd;
    NSString *usingPickerView;
    int indexX;
    UIButton *addBtn;
    UIButton *typeBtn;
    UIButton *timeBtn;
    UIImageView *tiaoImageView;
    UIButton *submitButton;            //确定按钮
    UIButton *cancelButton;            //取消按钮
    UITableView *tableViews;  //显示商家表
    AppDelegate *appDelegate;
    FMDBSupplierManager *fmdbSupplierManager;
}




@property (retain, nonatomic) UIPickerView *addressPickerView;   //路段选取器
@property (retain, nonatomic) UIPickerView *typePickerView;      //类型选取器
@property (retain, nonatomic) UIPickerView *shopHoursPickerView; //营业时间选取器
@property (retain, nonatomic) NSArray *addressTestData;          //地址选取器测试数据



@property (retain, nonatomic) NSArray *shopHoursTestData;        //营业时间选取器选取器数据
@property NSInteger supplierCategoryTag;      //店铺类型tag

- (void) initMembers;
- (void) hiddenPickerView;
- (IBAction)showPickerViewAction:(id)sender;                     //显示选取器

- (IBAction)pickerEndButtonPress:(id)sender;                     //点击pickerView上的确定按钮触发的事件
@property (retain, nonatomic) IBOutlet UIActivityIndicatorView *activityIndicatorView;

@end
